﻿cmake_minimum_required (VERSION 3.12)
 
project(ModuleDemo LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON) 
 
# module 文件后缀是cppm cxxm。msvc还支持ixx
add_executable(${PROJECT_NAME} main.cc helloworld.cppm Printer.ixx)


if(CMAKE_VERSION VERSION_GREATER 3.12)
	set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 20)
endif()
